package com.library.service;



import com.library.domain.Publisher;
import com.library.mapper.PublisherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class PublisherServiceImpl implements PublisherService {

    @Autowired
    PublisherMapper publisherMapper;

    @Override
    public List<Publisher> selectAll() {
        return publisherMapper.selectAll();
    }

    @Override
    public Integer add(Publisher publisher) {
        return publisherMapper.add(publisher);
    }

    @Override
    public Integer del(int pid) {
        return publisherMapper.del(pid);
    }

    @Override
    public Integer change(Publisher publisher) {
        return publisherMapper.change(publisher);
    }
}
